<html>
<meta charset="utf-8">
<head>
    <script src="js/clientHint.js"></script>
</head>
<body>

<form>
    名字: <input type="text" id="txt1" onkeyup="showHint(this.value)"/>
</form>
<p>建议: <span id="txtHint"></span></p>

</body>
</html>